.class public Lrexsee/core/alarm/RexseeKeyguard;
.super Ljava/lang/Object;
.source "RexseeKeyguard.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "Keyguard"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;

.field private mKeyguardLock:Landroid/app/KeyguardManager$KeyguardLock;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    const/4 v0, 0x0

    .line 33
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 27
    iput-object v0, p0, Lrexsee/core/alarm/RexseeKeyguard;->mKeyguardLock:Landroid/app/KeyguardManager$KeyguardLock;

    .line 34
    iput-object v0, p0, Lrexsee/core/alarm/RexseeKeyguard;->mBrowser:Lrexsee/core/browser/Browser;

    .line 35
    iput-object p1, p0, Lrexsee/core/alarm/RexseeKeyguard;->mContext:Landroid/content/Context;

    .line 36
    return-void
.end method

.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 29
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 27
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/alarm/RexseeKeyguard;->mKeyguardLock:Landroid/app/KeyguardManager$KeyguardLock;

    .line 30
    iput-object p1, p0, Lrexsee/core/alarm/RexseeKeyguard;->mBrowser:Lrexsee/core/browser/Browser;

    .line 31
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/core/alarm/RexseeKeyguard;->mContext:Landroid/content/Context;

    .line 32
    return-void
.end method


# virtual methods
.method public disable()V
    .locals 3

    .prologue
    .line 57
    iget-object v1, p0, Lrexsee/core/alarm/RexseeKeyguard;->mContext:Landroid/content/Context;

    const-string v2, "keyguard"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/KeyguardManager;

    .line 58
    .local v0, "keyguardManager":Landroid/app/KeyguardManager;
    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/app/KeyguardManager;->newKeyguardLock(Ljava/lang/String;)Landroid/app/KeyguardManager$KeyguardLock;

    move-result-object v1

    iput-object v1, p0, Lrexsee/core/alarm/RexseeKeyguard;->mKeyguardLock:Landroid/app/KeyguardManager$KeyguardLock;

    .line 59
    iget-object v1, p0, Lrexsee/core/alarm/RexseeKeyguard;->mKeyguardLock:Landroid/app/KeyguardManager$KeyguardLock;

    invoke-virtual {v1}, Landroid/app/KeyguardManager$KeyguardLock;->disableKeyguard()V

    .line 60
    return-void
.end method

.method public enable()V
    .locals 0

    .prologue
    .line 49
    return-void
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 18
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 14
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/alarm/RexseeKeyguard;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "Keyguard"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 22
    new-instance v0, Lrexsee/core/alarm/RexseeKeyguard;

    invoke-direct {v0, p1}, Lrexsee/core/alarm/RexseeKeyguard;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public reEnable()V
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lrexsee/core/alarm/RexseeKeyguard;->mKeyguardLock:Landroid/app/KeyguardManager$KeyguardLock;

    if-eqz v0, :cond_0

    .line 52
    iget-object v0, p0, Lrexsee/core/alarm/RexseeKeyguard;->mKeyguardLock:Landroid/app/KeyguardManager$KeyguardLock;

    invoke-virtual {v0}, Landroid/app/KeyguardManager$KeyguardLock;->reenableKeyguard()V

    .line 53
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/alarm/RexseeKeyguard;->mKeyguardLock:Landroid/app/KeyguardManager$KeyguardLock;

    .line 55
    :cond_0
    return-void
.end method
